package com.example.demo.design.demo19_composite;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 蔡超 on 2018/10/4.
 */
public abstract class Company {
    private String name;


    public Company(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    abstract void add(Company company);

    abstract void remove(Company company);

    abstract void display();

}
